import React from "react"
import "../css/Header.css"
import Body from "./Body"

class Header extends React.Component {
    constructor(props) {
        super(props)
    }
    render() {
        return (
            <div>
                <div className="header_top">
                    <img src="http://localhost:3000/1.jpg"></img>
                    <div className="header_button">
                        <button onClick={() => {
                            console.log(this);
                            this.props.history.push({
                                pathname: "/denglv"
                            })
                        }}>登录</button>
                        <button>注册</button>
                    </div>
                </div>
                <div className="header_top1">
                    <img src="http://localhost:3000/2.jpg"></img>
                </div>
                <Body></Body>
            </div>


        )
    }
}
export default Header